home *** CD-ROM | disk | FTP | other *** search
- Path: news.cencom.net!ns!tanp
- From: tanp@ns (Bill Wendling)
- Newsgroups: comp.lang.c
- Subject: Re: list permutation algorithms
- Date: 1 Feb 1996 08:30:43 GMT
- Organization: Cen-Com Internet
- Message-ID: <4eptnj$jbs@news.cencom.net>
- References: <bwood-3001961654260001@ruger-90.slip.uiuc.edu>
- NNTP-Posting-Host: ns.cencom.net
- X-Newsreader: TIN [version 1.2 PL2]
-
- Brett Wood inexplicably wrote:
- } I am looking for a simple algorithm to find all of the possible permutations of
- } a one-dimensional array. For example, the permutations of {1,2,3} are:
- } {1,2,3}
- } {1,3,2}
- } {2,1,3}
- } {2,3,1}
- } {3,1,2}
- } {3,2,1}
- } Does anyone know one off-hand, or where I might find one?
- } Thank you, Brett Wood
-
- I'm sure your professor or TA has the answer. But this isn't a group
- that does your homework for you.
-
- --
- Bill Wendling | "Pinky, are you thinking what I'm thinking?"
- tanp@ns.cencom.net | "I think so, Brain, but burlap chafes me so."
- "Boom Shanka" | Finger me for my Geek Code...NOW!
-